package com.study.service.impl;

import com.study.service.Axe;
import com.study.service.Person;
import org.springframework.beans.factory.annotation.Autowired;

public class Chinese implements Person {
    @Autowired
    private Axe axe;
    public void setAxe(Axe axe){
        this.axe=axe;
    }
    public void useAxe(){
        System.out.println("中国人使用斧头：" +axe.chop());
    }
}
